﻿// Cấu hình routeProvider
app.config(function ($routeProvider) {
    $routeProvider.when('/m/index', {
        templateUrl: '/vws/mbl/index.html',
        controller: 'IndexCtrl'
    });
    $routeProvider.when('/m/about', {
        templateUrl: '/vws/mbl/about.html',
        controller: 'AboutCtrl'
    });
    $routeProvider.when('/m/items', {
        templateUrl: '/vws/mbl/items/list.html',
        controller: 'ItemsListCtrl'
    });
    $routeProvider.when('/m/items/search/:ItemSearchName', {
        templateUrl: '/vws/mbl/items/list.html',
        controller: 'ItemsListCtrl'
    });
    $routeProvider.when('/m/items/list/:CategorySearchName?/:TypeSearchName?', {
        templateUrl: '/vws/mbl/items/list.html',
        controller: 'ItemsListCtrl'
    });
    $routeProvider.when('/m/items/other', {
        templateUrl: '/vws/mbl/items/list.html',
        controller: 'ItemsListCtrl'
    });
    $routeProvider.when('/m/items/detail/:ItemSearchName', {
        templateUrl: '/vws/mbl/items/detail.html',
        controller: 'ItemsDetailCtrl'
    });
    $routeProvider.when('/m/gallery', {
        templateUrl: '/vws/mbl/gallery.html',
        controller: 'GalleryCtrl'
    });
    $routeProvider.when('/m/contact', {
        templateUrl: '/vws/mbl/contact.html',
        controller: 'ContactCtrl'
    });
    $routeProvider.otherwise({ redirectTo: '/m/index' });
});